home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _8027C940108B4963ADB8C531C2C660E7 < prev    next >
Encoding:
Extensible Markup Language  |  2003-06-20  |  1.9 KB  |  41 lines

  1. <?xml version='1.0' encoding='ISO-8859-1' ?>
  2. <activescript language="javascript">
  3.  <item macroname="SCRIPT_ReomveGarbageFiles" />
  4.  <code>
  5.   <![CDATA[
  6.   function SCRIPT_ReomveGarbageFiles()
  7.   {
  8.       var    sBeVertical =host.template.evalMacro("WFT_BE_VERTICAL_FLASHHELP");
  9.       var fso        = new ActiveXObject("Scripting.FileSystemObject");
  10.       var strFilePath;
  11.       var strFileDirBase = host.template.evalMacro("System.ResultFolderName");
  12.       if(sBeVertical == "true")
  13.       {
  14.           strFilePath = strFileDirBase + host.template.evalMacro("WFT_STARTFS_PAGE");          
  15.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  16.           strFilePath = strFileDirBase + host.template.evalMacro("WFT_BOTTOM_PAGE");          
  17.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  18.           strFilePath = strFileDirBase + host.template.evalMacro("WFT_CONTENTFS_PAGE");
  19.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  20.           strFilePath = strFileDirBase + host.template.evalMacro("WILDFIRE_TEMPLATE.pane.homepage");
  21.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  22.       }
  23.       else
  24.       {
  25.           strFilePath = strFileDirBase + host.template.evalMacro("WFT_VERTICAL_STARTFS_PAGE");
  26.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  27.           strFilePath = strFileDirBase + host.template.evalMacro("WFT_VERTICAL_BOTTOM_PAGE");
  28.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  29.           strFilePath = strFileDirBase + host.template.evalMacro("WFT_VERTICAL_CONTENTFS_PAGE");
  30.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  31.           strFilePath = strFileDirBase + host.template.evalMacro("WILDFIRE_TEMPLATE.vertical_pane.homepage");
  32.           if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath ) ;
  33.       }
  34.       strFilePath = strFileDirBase + host.template.evalMacro("WILDFIRE_TOPIC_TEMPLATE");
  35.       if (fso.FileExists(strFilePath)) fso.DeleteFile( strFilePath );      
  36.       return "";
  37.   }
  38.  ]]>
  39.  </code>
  40. </activescript>
  41.